package com.elvin.wx.beans;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 * 无线设备通信状态表
 * </p>
 *
 * @author zhenchl
 * @since 2022-01-14
 */
@TableName("fn_wireless_history")
public class WireDevPressureHistory extends Model<WireDevPressureHistory> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 数据流id
     */
    private String datastreamId;
    /**
     * 设备id
     */
    private String devId;
    /**
     * 压力值
     */
    private Float pressure;
    /**
     * 压力单位
     */
    private String pressureUnit;
    /**
     * 温度值
     */
    private Float temperature;
    /**
     * 温度单位
     */
    private String temperatureUnit;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建日期", required =false,hidden=true)
    private Date createTime;
    @ApiModelProperty(value = "获取数据时间", required =false,hidden=false)
    private Date utcTime;

    public Date getUtcTime() {
        return utcTime;
    }

    public void setUtcTime(Date utcTime) {
        this.utcTime = utcTime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDatastreamId() {
        return datastreamId;
    }

    public void setDatastreamId(String datastreamId) {
        this.datastreamId = datastreamId;
    }

    public String getDevId() {
        return devId;
    }

    public void setDevId(String devId) {
        this.devId = devId;
    }

    public String getPressureUnit() {
        return pressureUnit;
    }

    public void setPressureUnit(String pressureUnit) {
        this.pressureUnit = pressureUnit;
    }

    public Float getPressure() {
        return pressure;
    }

    public void setPressure(Float pressure) {
        this.pressure = pressure;
    }

    public Float getTemperature() {
        return temperature;
    }

    public void setTemperature(Float temperature) {
        this.temperature = temperature;
    }

    public String getTemperatureUnit() {
        return temperatureUnit;
    }

    public void setTemperatureUnit(String temperatureUnit) {
        this.temperatureUnit = temperatureUnit;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "WireDevPressure{" +
        "id=" + id +
        ", datastreamId=" + datastreamId +
        ", devId=" + devId +
        ", pressure=" + pressure +
        ", pressureUnit=" + pressureUnit +
        ", temperature=" + temperature +
        ", temperatureUnit=" + temperatureUnit +
        ", createTime=" + createTime +
        "}";
    }
}
